<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:bb="">
    <head th:fragment="head(title,desc,cssPaths)">
        <meta charset="utf-8"/>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title th:text="${(title!=null?title:'javabb论坛')+' - '+#configUtil.getConfigValue('siteTitle')}"></title>
        <meta name="description" th:content="${desc==null? #configUtil.getConfigValue('siteDesc'):desc}" />
        <meta name="keywords" th:content="${#configUtil.getConfigValue('siteKeywords')}" />

        <link rel="shortcut icon" th:href="@{/static/assets/images/javabb_favicon.png}" type="image/x-icon">
        <link rel="stylesheet" th:href="@{/static/assets/libs/layui/css/layui.css}"/>

        <link rel="stylesheet" th:href="@{/static/assets/css/global.css}"/>
        <link rel="stylesheet" href="http://at.alicdn.com/t/font_1535126_ruv2blliok.css"/>
        <!-- 外部样式 begin -->
        <link rel="stylesheet" type="text/css" th:each="cssPath,status:${#strings.setSplit(cssPaths,',')}"
              th:href="@{${cssPath}}"/>
        <!-- 外部样式 end -->
    </head>

    <body th:fragment="js">
        <script th:inline="javascript">
            var isLogin = [[${session.sessionUser==null?false:true}]];
        </script>
        <!-- js部分 -->
        <script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
        <script type="text/javascript" src="/static/assets/libs/jquery/jquery-3.2.1.min.js"></script>
        <script type="text/javascript" src="/static/assets/js/common.js"></script>
        <script type="text/javascript" src="/static/assets/libs/ajaxUtil.js"></script>
        <script type="text/javascript" src="/static/assets/js/base.js"></script>
        <script type="text/javascript" src="/static/assets/js/all.js"></script>
        <script type="text/javascript" src="/static/assets/js/login.js"></script>
        <script type="text/javascript" src="/static/assets/js/comment.js"></script>
        <th:block th:if="${hasEditor==true}">
            <script type="text/javascript" charset="utf-8" src="/static/module/neditor/neditor.config.js"></script>
            <script type="text/javascript" charset="utf-8" src="/static/module/neditor/neditor.all.min.js"></script>
            <script type="text/javascript" charset="utf-8" src="/static/module/neditor/neditor.service.js"></script>
            <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
            <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
            <script type="text/javascript" charset="utf-8" src="/static/module/neditor/i18n/zh-cn/zh-cn.js"></script>

            <script type="text/javascript" src="/static/module/neditor/third-party/browser-md5-file.min.js"></script>
            <script type="text/javascript" src="/static/module/neditor/third-party/jquery-1.10.2.min.js"></script>

            <!--<script th:inline="javascript" th:src="@{/assets/js/publish.js}"></script>-->

        </th:block>

    </body>

    <body th:fragment="post">
        <script th:inline="javascript">
            /*<![CDATA[*/
            function publish(catalogId) {
                if (!isLogin) {
                    B.error("请先登录！");
                    return;
                } else {
                    window.location.href = "/post/publish?catalogId=" + catalogId;
                }
            }


            /*]]>*/


        </script>
    </body>
</html>
